package cn.gson.springboot.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.alibaba.fastjson.JSONArray;

import cn.gson.springboot.model.mapper.CheckYkMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class CheckYkService {
	@Autowired
	private CheckYkMapper pdm;
	
	//盘点所有库存
	public JSONArray pandiansuoyou(String drug_period) {
		if(drug_period!=null) {
			if(drug_period.trim().equals("")) {
				drug_period=null;
			}
		}
		return pdm.pandiansuoyou(drug_period);
	}
	
	//盘点详情
	public JSONArray pandianxq(Integer inventory_yk_id) {
		return pdm.pandianxq(inventory_yk_id);
	}
}
